package com.szxb.facebus.net.ftp;

/**
 * 作者：Tangren on 2018-09-06
 * 包名：com.czgj.task.download
 * 邮箱：996489865@qq.com
 * TODO:一句话描述
 */

public class FtpResponse {

    public static final int SUCCESSFUL = 0;
    public static final int NOUPDATE = 1;
    public static final int FILE_NO_EXIT = 2;
    public static final int FAIL = -1;
    private int isOk = -1;
    private String fileName = "unk";
    private String path = "失败";
    private String fileType = "失败";
    private String msg = "文件不存在";
    private boolean isFileExit = false;

    public boolean isFileExit() {
        return isFileExit;
    }

    public void setFileExit(boolean fileExit) {
        isFileExit = fileExit;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getIsOk() {
        return isOk;
    }

    public void setIsOk(int isOk) {
        this.isOk = isOk;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    @Override
    public String toString() {
        return "FtpResponse{" +
                "isOk=" + isOk +
                ", fileName='" + fileName + '\'' +
                ", path='" + path + '\'' +
                ", fileType='" + fileType + '\'' +
                ", msg='" + msg + '\'' +
                ", isFileExit=" + isFileExit +
                '}';
    }
}
